package com.wsjc.manager.entity;

import java.util.Date;

/**
 * 
 * @Description 权限表 
 * @ClassName   WjPermission 
 * @Date        2018年7月22日 下午6:02:08 
 * @Author      liyang 
 *
 */
public class WjPermission {
	
	/** 主键 */
    private String id;

    /** 路径 */
    private String url;

    /** 级别   （分一级权限  二级权限  三级权限） */
    private String level;

    /** 创建时间 */
    private Date createTime;

    /** 菜单名称 */
    private String meunName;

    /**子节点ID*/
    private String childId;

    public WjPermission(String id, String url, String level, Date createTime, String meunName, String childId) {
        this.id = id;
        this.url = url;
        this.level = level;
        this.createTime = createTime;
        this.meunName = meunName;
        this.childId = childId;
    }

    public WjPermission() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level == null ? null : level.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getMeunName() {
        return meunName;
    }

    public void setMeunName(String meunName) {
        this.meunName = meunName == null ? null : meunName.trim();
    }

    public String getChildId() {
        return childId;
    }

    public void setChildId(String childId) {
        this.childId = childId == null ? null : childId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", url=").append(url);
        sb.append(", level=").append(level);
        sb.append(", createTime=").append(createTime);
        sb.append(", meunName=").append(meunName);
        sb.append(", childId=").append(childId);
        sb.append("]");
        return sb.toString();
    }
}